<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="app">
        <button @click="handleClick($event,2)">点我吧</button>
        {{count}}<button @click="count++">行内写代码</button>
    </div>
    <script>
        // 事件深入
        const vm = new Vue({
            el:"#app",
            data:{
               count:0
            },
            methods:{
                handleClick(eve,num){
                    console.log(eve);
                    console.log(num);
                }
            }
        })

    </script>
</body>
</html>